// const arr = [10, 5, 2, 6]
// console.log(arr.sort((a, b) => a - b).filter(item => item < 8));


const arr = [() => console.log(1)]
arr.shift()